FROM alpine

RUN apk update --no-progress
RUN apk add --no-progress clang
RUN apk add --no-progress musl-dev

WORKDIR /home

COPY main.c /home

RUN clang -O3 -o geoipc main.c

CMD ["./geoipc"]
